<template>
  <div class="son">
    <h3>标题：{{ item.proname }}</h3>
    <p>价格：{{ item.proprice }}元</p>
    <p>开业全场八折</p>
    <button @click="setPrice">砍价</button>
  </div>
</template>
<script>
export default {
  props: ['item'],
  methods: {
    setPrice () {
      this.$emit('setMoney', this.item.id, this.item.proprice - 0.5)
    }
  }
}
</script>

<style>
.son {
  border: 1px solid black;
  padding: 20px;
  width: 400px;
  margin-bottom: 20px;
}
</style>
